<?php
class pssmonitor{
	function check($p){
		$p=trim($p);
		if(!$p)return 0;
		$fn=date('YmdHi',time()-20);
		$cmd="ls $p$fn* |wc -l";		
		exec($cmd,$result);
		$num=$result[0];
		if($num=="0")
			return "1";
		else
			return "0";
	}
}
